#!/bin/sh
# Replace these three settings.
PROJDIR="/home/mysite"
PIDFILE="$PROJDIR/mysite.pid"
SOCKET="$PROJDIR/mysite.sock"
cd $PROJDIR
if [ -f $PIDFILE ]; then
    kill `cat -- $PIDFILE`
    rm -f -- $PIDFILE
fi
/etc/init.d/nginx restart
exec /usr/bin/python2.5 manage.py runfcgi host=127.0.0.1 port=8001 --settings=settings 
